import { UploadFile, DownloadFile } from '@/utils';
// 创建文件上传实列
const FileUpload: any = UploadFile.getInstance({
    baseUrl: 'https://www.example.com',
})
// 请求拦截
FileUpload.interceptors.request((config: any) => {
    return config;
})

// 创建文件下载实例
const FileDownload: any = DownloadFile.getInstance({
    baseUrl: 'https://www.example.com',
})
// 请求拦截
FileDownload.interceptors.request((config: any) => {
    console.log('config', config)
    return config;
})

export { 
    FileUpload,
    FileDownload
}